package template;

/**
 * @author zhangxi
 * @date 2021/10/9
 */
public class TemplacPatterDemo {
    public static void main(String[] args) {
        DiscountCalculator discountCalculator1 = new DiscountCalculator1();
        DiscountCalculator2 discountCalculator2 = new DiscountCalculator2();
        discountCalculator1.calculate();
        discountCalculator2.calculate();
    }
}
